<?php
	// 4/21/2010: immanuel192 write this module
	class surveymodule {
		function name() { return 'Survey Module'; }
		function description() { return 'Survey module, for mailing list management'; }
		function author() { return 'Immanuel192'; }

		function hasSources() { return true; }
		function hasContent() { return false; }
		function hasViews() { return true; }

		function supportsWorkflow() { return false; }

		function forceLocation() { 
			$loc=null;
			$loc->mod="surveymodule";
			$loc->src="@".$loc->mod;
			$loc->int="";
			return $loc;
		}

		function permissions($internal = '') {
			return array(
			'administrate'=>"Administrate",
			'manage'=>"Manage",
			'create'=>"Add",
			'edit'=>"Edit",
			'delete'=>"Delete",
			);
		}

		function show($view,$loc = null, $title = '') {
			global $db;
			//$this->install();
			$template = new template('surveymodule',$view,$loc);
			$template->register_permissions(array('administrate',"mail"),$loc);
			// Assign page data
			$template->assign('moduletitle', $title);
			$template->output();
		}
		function install()
		{
			
		}
		function deleteIn($loc) {
			return false;
		}

		function copyContent($oloc,$nloc) {
			global $db;
			return false;
		}

		function searchName() {
			return false;
		}

		function spiderContent($item = null) {
			return false;
		}
	}

?>
